package my.sample.junk;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.RoundingMode;

import snmp.SNMPCounter32;
import snmp.SNMPObject;

public class BigIntCasting {

	public static void main(String[] args) {

		BigIntCasting casting = new BigIntCasting();

		casting.calculate();

	}

	public void calculate() {
		BigDecimal rawVal = new BigDecimal((BigInteger) getValue().getValue());
		rawVal = rawVal.setScale(2, RoundingMode.HALF_UP);
		System.out.println(rawVal);
	}

	private SNMPObject getValue() {
		return new SNMPCounter32(15817819);
	}
}
